﻿using System;
using System.ComponentModel.DataAnnotations;
using ALinq.BBS.App_GlobalResources;
using ALinq.BBS.DataAccess;

namespace ALinq.BBS.Models
{
    public class LoginModel
    {
        [Required]
        [Display(Name = "UserName", ResourceType = typeof(Label))]
        public string UserName { get; set; }

        [Required()]
        [DataType(DataType.Password)]
        [Display(Name = "Password", ResourceType = typeof(Label))]
        public string Password { get; set; }

        public string ValidateCode { get; set; }

        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; }

    }

    public class EditTopicModel
    {
        public EditTopicModel()
        {

        }

        public EditTopicModel(IArticle post)
        {
 
            Title = post.Title;
            Content = post.Content;
           
        }

        //public EditTopicModel(Reply reply)
        //{
        //    ID = reply.ID;
        //    Title = reply.Title;
        //    Content = reply.Content;
        //}


        [Required]
        [Display(Name = "Title", ResourceType = typeof(Label))]
        public string Title { get; set; }

        [Required]
        [Display(Name = "Content", ResourceType = typeof(Label))]
        public string Content { get; set; }


    }
}